package git.soulbgm.config;

import git.soulbgm.common.enums.JobConfigMode;
import git.soulbgm.pojo.JobInfo;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * 定时任务信息配置
 *
 * @author SoulBGM
 * @date 2020/11/18
 */
@Configuration
@ConfigurationProperties(prefix = "job", ignoreUnknownFields = false)
public class JobInfoConfig {

    private JobConfigMode configMode;

    private List<JobInfo> infos;

    public JobConfigMode getConfigMode() {
        return configMode;
    }

    public void setConfigMode(JobConfigMode configMode) {
        this.configMode = configMode;
    }

    public List<JobInfo> getInfos() {
        return infos;
    }

    public void setInfos(List<JobInfo> infos) {
        this.infos = infos;
    }
}
